package org.timeismoney.payment.dao.impl;

import org.timeismoney.payment.dao.PaymentFinDao;
import org.timeismoney.payment.model.PaymentFin;

public class PaymentFinDaoImpl extends GenericDaoImpl<PaymentFin, Integer>
		implements PaymentFinDao {

	public PaymentFinDaoImpl() {
		super();
		setClazz(PaymentFin.class);
	}

	public void deleteByStuNo(String stuNo) {
		getHibernateTemplate().bulkUpdate(
				"delete from PaymentFin where student.stuNo = ?", stuNo);
	}

	public void deleteBySchoolYearNo(int schoolYearNo) {
		getHibernateTemplate().bulkUpdate(
				"delete from PaymentFin where schoolYear.schoolYearNo = ?", schoolYearNo);
	}

}
